package com.th.supcom.pds.phamapply.client.widget.inpharmacyreturn;

import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.Radio;
import com.extjs.gxt.ui.client.widget.form.RadioGroup;

/**
 * 住院药房退药按钮集合
 * 
 * @author yzhang
 */
/**
 *
 */
public class NurseReturnButtons
{
    /** 查询按钮. */
    private Button m_queryBtn;
    /** 退药按钮. */
    private Button m_comfirmBtn;
    /** 清屏按钮. */
    private Button m_clearBtn;

    /** 带药退药 */
    private Radio m_returnWithDrug;

    /** 不带药退药 */
    private Radio m_returnWithoutDrug;

    /** 退药处方 */
    private Radio m_returnPresc;

    /** 电子退药单 */
    private Radio m_returnBill;
    private RadioGroup m_generateTypeGroup;

    /**
     * 构造方法
     */
    public NurseReturnButtons ()
    {
        createButtons ();
    }

    private void createButtons ()
    {
        m_queryBtn = new Button ("查询(Q)");
        m_comfirmBtn = new Button ("确认(O)");
        m_clearBtn = new Button ("清屏(R)");

        RadioGroup radioGroup = new RadioGroup ();

        m_returnWithDrug = new Radio ();
        m_returnWithDrug.setBoxLabel ("带药退药");

        m_returnWithoutDrug = new Radio ();
        m_returnWithoutDrug.setBoxLabel ("不带药退药");
        m_returnWithoutDrug.setValue (true);
        m_returnBill = new Radio ();
        m_returnBill.setBoxLabel ("生成电子退药单");

        m_returnPresc = new Radio ();
        m_returnPresc.setBoxLabel ("生成退药处方");
        m_returnBill.setValue (true);

        m_generateTypeGroup = new RadioGroup ();
        m_generateTypeGroup.setLabelSeparator ("  ");
        m_generateTypeGroup.add (m_returnBill);
        m_generateTypeGroup.add (m_returnPresc);
        radioGroup.add (m_returnWithDrug);
        radioGroup.add (m_returnWithoutDrug);

    }

    /**
     * 获得 查询按钮.
     * 
     * @return
     */
    public Button getQueryBtn ()
    {
        return m_queryBtn;
    }

    /**
     * 获得 生成电子退药单 按钮
     * 
     * @return
     */
    public Button getComfirmBtn ()
    {
        return m_comfirmBtn;
    }

    /** 获得清屏按钮. */
    public Button getClearBtn ()
    {
        return m_clearBtn;
    }

    /**
     * 带药退药 radio
     * 
     * @return
     */
    public Radio getReturnWithDrug ()
    {
        return m_returnWithDrug;
    }

    /**
     * 不带药退药radio
     * 
     * @return
     */
    public Radio getReturnWithoutDrug ()
    {
        return m_returnWithoutDrug;
    }

    /**
     * 退药处方 radio
     * 
     * @return
     */
    public Radio getReturnPresc ()
    {
        return m_returnPresc;
    }

    /**
     * 电子退药单 radio
     * 
     * @return
     */
    public Radio getReturnBill ()
    {
        return m_returnBill;
    }

    public RadioGroup getGenerateTypeGroup ()
    {
        return m_generateTypeGroup;
    }

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}
